rework waitsync flag to use the lightclient await_sync method#2146
rework waitsync flag to use the lightclient await_sync method#2146zancas merged 2 commits intozingolabs:stablefrom
Conversation
|
I tested this patch on top of current sources. (without this patch, the output also includes messages). Compilation warning is this: |
|
It seems to me that lightclient.await_sync().await probably doesnt work for waitsync, it does not wait if the sync was not started yet (maybe in another thread, start not completed yet? just a guess) |
Ok thanks for the info. My testing has not reproduced these issues but I will try to create a reproduction so we can fix this asap |
For context, the sync handle is given to the LightClient before the |
|
Moving this to draft until we have a solution in progress. |
|
There is now a tracking issue for the observed buggy behavior: #2195 |
|
I have done alot of testing and this code is working as intended AFAIC. one limitation of waitsync is that if a sync error is hit it will call the command on the state of sync at the time of error. maybe this is the issue @Tomas-M is facing? I have left a comment here #2197 (comment). @Tomas-M if you could provide more info that would be great |
|
I tried to reproduce my problem again. |
|
This is good to know @Tomas-M . Next time you notice any issue, please use the github issue system. If we can get a shared test-wallet, and reference specific PRs in the issue that will also accelerate bug-fixes. |
No description provided.